/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.shop.entity.order;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.hk.shop.entity.shop.HkShopCollageCoupon;
import com.thinkgem.jeesite.modules.hk.sys.entity.user.HkUser;
import org.hibernate.validator.constraints.Length;

/**
 * 乐购拼团订单Entity
 * @author 李欣荣
 * @version 2018-09-29
 */
public class HkUserCollageOrder extends DataEntity<HkUserCollageOrder> {
	
	private static final long serialVersionUID = 1L;
	private HkUser user;		// 用户
	private String state;		// 状态1成功0失败
	private HkShopCollageCoupon collage;		// 拼团id
	private String couponId;		// 优惠券id
	private String productId;		// 商品id
	private String num;		// 开团人数
	private Integer integral;  //乐币
	
	public HkUserCollageOrder() {
		super();
	}

	public HkUserCollageOrder(String id){
		super(id);
	}

	public HkUser getUser() {
		return user;
	}

	public void setUser(HkUser user) {
		this.user = user;
	}
	
	@Length(min=0, max=11, message="状态1成功0失败长度必须介于 0 和 11 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	public HkShopCollageCoupon getCollage() {
		return collage;
	}

	public void setCollage(HkShopCollageCoupon collage) {
		this.collage = collage;
	}
	
	@Length(min=0, max=100, message="优惠券id长度必须介于 0 和 100 之间")
	public String getCouponId() {
		return couponId;
	}

	public void setCouponId(String couponId) {
		this.couponId = couponId;
	}
	
	@Length(min=0, max=100, message="商品id长度必须介于 0 和 100 之间")
	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}
	
	@Length(min=0, max=11, message="开团人数长度必须介于 0 和 11 之间")
	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}

	public Integer getIntegral() {
		return integral;
	}

	public void setIntegral(Integer integral) {
		this.integral = integral;
	}
}